#ifndef MCF8316A_H
#define MCF8316A_H
#include "global.h"
#include "app_i2c_bus.h"

typedef struct MCFCONTROLWD{
    uint32_t mem_addr:12;
    uint32_t mem_page:4;
    uint32_t mem_sec:4;
    uint32_t dlen:2;
    uint32_t crc_en:1;
    uint32_t rw:1;
}MCFCONTROLWD;

typedef union MCFCONTROLWDU{
    MCFCONTROLWD mcfctrwd;
    uint8_t data[4];
}MCFCONTROLWDU;

#define MCF_DEV_ID 0x01
#endif